/*
 * ＠ 用于购买节点
*/

.text-color-blue {
  color: rgb(59, 130, 246);
}

.bn-tips {
  border-radius: 4px;
  padding: 4px 8px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  background-color: rgba(59, 130, 246, 0.1);
}

.layui-tab .layui-tab-title li {
  min-width: 10px !important;
}
/* .layui-tab .layui-tab-title li span.pear-tab-active {
  display: none !important;
} */

.gameinfo {
  // 游戏名称标题
  &_title {
    i {
      color: rgb(107, 114, 128);
    }
    > span {
      display: inline-block;
      width: 20px;
      height: 20px;
      line-height: 20px;
      cursor: pointer;
      text-align: center;
      border-radius: 20px;
      &:hover {
        background-color: #0967eb;
        i {
          color: #fff;
        }
      }
    }
  }
  // 过滤条数
  // &_filter_count {
  // }

  // 过滤
  &_filter {
    &_tips {
      padding: 10px 20px;
      border-radius: 6px;
      color: rgb(75, 85, 99);
      font-size: 16px;
      font-weight: bold;
      background: rgba(59, 130, 246, 0.1);
    }
  }
  // 城市
  &_citys {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    button {
      &.active {
        color: #0967eb;
        border-color: #b3f1e8;
        background-color: #e6faf7;
      }
      &:hover {
        color: #0967eb;
        border-color: #b3f1e8;
        background-color: #e6faf7;
      }
    }
  }
}

// 悬浮结算框架
.fixedbox-buy-wrapper {
  position: fixed;
  bottom: 0;
  z-index: 9;
  min-height: 268px;
  width: calc(100% - 13px);
  background-color: white;
  box-shadow: 0 -2px 12px 1px rgba(0, 0, 0, 0.1);
  border-radius: 5px 5px 0 0;
  .layui-card-body {
    padding: 10px 0 0 0 !important;
  }
  .layui-form {
    margin-top: 0 !important;
  }

  .layui-form-item {
    margin-bottom: 13px;
    transition: margin-button 2s ease-in-out;
    &:last-child {
      margin-bottom: 0;
    }
  }

  .layui-input-inline--autow {
    width: auto;
  }

  &.mini {
    .layui-form-item {
      margin-bottom: 2px;
    }
  }

  .layui-form-label {
    text-align: right;
    text-align: justify !important;
    text-align-last: justify !important;
  }

  .bn-times {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 5px;
    flex-wrap: nowrap;
    .pear-btn-md,
    .pear-btn-sm,
    .pear-btn-xs,
    .pear-btn {
      padding: 6px;
    }
  }

  .auto-input-second {
    .layui-form-label {
      display: none;
    }
    .layui-input-block {
      margin-left: 0;
    }
  }

  .custom-port {
    display: flex;
  }
}

// 确认订单模块
.bn-submit-box {
  > div {
    margin-right: 10px;
    font-size: 12px;
    color: rgb(75, 85, 99);
    padding: 5px;
    background-color: #fff;
    background-color: rgba(59, 130, 246, 0.05);
    border-radius: 4px;
    i {
      vertical-align: middle;
    }
    &:last-child {
      margin-right: 0;
    }
  }
}

// nodes styles
.nodes {
  &-wrapper {
    display: grid;
    column-gap: 18px;
    row-gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    li {
      position: relative;
      padding: 10px;
      border: 1px solid #ebeef5;
      background-color: #fff;
      color: #303133;
      -webkit-transition: 0.3s;
      transition: 0.3s;
      border-radius: 8px;
      overflow: hidden;
      > div:first-child {
        height: 32px;
      }
      &.flag {
        background-color: rgb(236, 245, 255);
      }
      &:hover {
        -webkit-box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
        box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
      }
      .layui-input-sm {
        height: 30px;
        line-height: 30px;
      }
      .new {
        width: 30px;
        height: 30px;
        position: absolute;
        left: 0px;
        top: 0px;
        z-index: 1;
        border-radius: 10px 0px;
        img {
          width: 100%;
          height: 100%;
          vertical-align: middle;
        }
      }

      .middleinfos {
        font-size: 12px;
        color: rgb(156, 163, 175);
        margin-bottom: 8px;
      }
      .btns {
        column-gap: 10px;
      }
    }
  }
  &-name {
    font-size: 14px;
    font-weight: bold;
    margin-right: 10px;
    white-space: nowrap;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media screen and (max-width: 768px) {
  .fixedbox-buy-wrapper {
    width: 100%;
    .auto-input-second {
      .layui-input-block {
        margin-left: inherit;
      }
    }
    .custom-port {
      display: inherit;
    }
  }

  #gaps {
    display: none !important;
  }
  .nodes {
    &-wrapper {
      grid-template-columns: repeat(2, 1fr);
    }
  }
}

@media screen and (max-width: 450px) {
  .layui-form-item .layui-input-inline {
    margin-left: 0 !important;
  }

  .fixedbox-buy-wrapper {
    position: relative;
    .auto-input-second {
      .layui-form-label {
        display: block;
      }
    }
  }
}

.layui-input-inline-addgent {
  min-width: 190px;
  width: auto!important;
  .pear-btn-group {
    white-space: nowrap;
  }
}
